package cn.iocoder.yudao.module.call.dal.dataobject.kmlocation;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分机 DO
 *
 * @author 数创万维
 */
@TableName("location")
@KeySequence("location_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class KmLocationDO implements Serializable {

    /**
     * id
     */
    @TableId
    private Integer id;

    private String ruid;
    private String username;
    private String domain;
    private String contact;
    private String received;
    private String path;
    private LocalDateTime expires;
    private Double q;
    private String callid;
    private Long cseq;
    private LocalDateTime lastModified;
    private Integer flags;
    private Integer cflags;
    private String userAgent;
    private String socket;
    private Integer methods;
    private String instance;
    private Integer regId;
    private Integer serverId;
    private Integer connectionId;
    private Integer keepalive;
    @TableField("`partition`")
    private Integer partition;


}